longFilePath
Type
function
Summary
Returns the long-format equivalent of an 8.3-format file path.
Syntax
the longFilePath of <filePath>
longFilePath(<filePath>)
Description
Use the longFilePath function to get the long equivalent of a short file path passed from the command line.
The longFilePath function transforms the filePath without looking for the file, so it returns a value even if the filePath does not exist- namely the filePath prefixed with the current defaultFolder.
In pre 7.x versions on Mac and Linux the longFilePath function returned the filePath without changing it, post 7.x the longFilePath function returns the full path to the file. This change may affect existing code.
Parameters
Name | Type | Description |
---|---|---|
filePath | The filePath is the location and name of the file or folder whose long equivalent you want. If you specify a name but not a location, LiveCode assumes the file or folder is in the defaultFolder. |
Examples
the longFilePath of it
if storedPath is not the longFilePath of storedFile then checkVersion
Related
property: defaultFolder
function: shortFilePath
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
Platforms
desktop
server